#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import consulter_blueprint
from api_1_0.consulterResource.consulterResource import ConsulterResource
from api_1_0.consulterResource.consulterOtherResource import ConsulterOtherResource

api = Api(consulter_blueprint)

api.add_resource(ConsulterResource, '/consulter/<con_id>', '/consulter', endpoint='Consulter')


@consulter_blueprint.route('/consulter/update/<con_id>', methods=['PUT'], endpoint='ConsulterUpdate')
def update(con_id):
    return ConsulterOtherResource.sensitive_update(con_id)
